home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
UTILHIVE
/
FILEARCH.LZH
/
FILARC20.EXE
/
INSTBAT.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-09-17
|
1KB
|
56 lines
Echo off
:This batch file should be located in the installation dirve/directory
Cls
type instbat.txt
Pause
if exist HDINST2.BAT del HDINST2.BAT
if "%1"=="" goto NoParms
:%1
:CD\
if EXIST %1\FAM.BAT goto Abort
if EXIST %1\FA.BAT goto Abort
goto Continue
:NoParms
Cls
Echo .
Echo . You must enter the drive and directory
Echo . where File/Archive is installed .....
Echo .
Echo . Use this format: INSTBAT x: Name
Echo .
Echo . Where "x" is the drive and "Name" is the directory
Echo . You don't need a "\" in fromt of "Name"
Echo .
pause
goto Quit
:Abort
Cls
Echo .
Echo . Batch file(s) already exist(s) on %1\
Echo . In order to avoid destroying your file(s)
Echo . this procedure will terminate here
Echo .
Pause
goto Quit
:Continue
Echo Echo off > %1\FAM.BAT
Echo Echo off > %1\FA.BAT
Echo Cls >> %1\FAM.BAT
Echo Cls >> %1\FA.BAT
Echo %1 >> %1\FAM.bat
Echo %1 >> %1\FA.bat
Echo CD \%2 >> %1\FAM.bat
Echo CD \%2 >> %1\FA.bat
Echo FAM %%1 >> %1\FAM.bat
Echo FA %%1 >> %1\FA.bat
Echo Cd\ >> %1\FAM.bat
Echo Cd\ >> %1\FA.bat
Cls
Type instbat2.txt
Echo .. The current directory should be %1\%2, and it is:
CD
Pause
:Quit
Cls